package com.md.common.enums;

/**
 * 功能描述：是否XX枚举
 *
 * @author lujianping@oak168.com
 * @version 1.0
 * @date 2018-6-14 11:51
 * @since JDK 1.8
 */
public enum YesNoEnum {

    No(0, "否"),
    Yes(1, "是");

    private int code;

    private String desc;

    YesNoEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
